<!-- Taglib Apache Tomcat 7.0.11\webapps\examples\jsp\jsp2\tagfiles -->
<%@ tag pageEncoding="UTF-8" %>

<%@ attribute name="title" required="true" %>
<%@ attribute name="idTitle" required="false" %>
<%@ attribute name="idDialog" required="true" %>
<%@ attribute name="idFrm" required="true" %>
<%@ attribute name="idDo" required="true" %>

<div class="modal fade" id="${idDialog}" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">Close</span></button>
                <h4 <%= idTitle==null ? "": "id=" + idTitle  %> class="text-center text-primary">${title}</h4>
            </div>

            <div class="modal-body">
                <form id="${idFrm}" class="form-horizontal" role="form">
                    <jsp:doBody/>
                </form>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="submit" class="btn btn-primary" id="${idDo}">确定</button>
            </div>
        </div>
    </div>
</div>
